package com.woniuxy.entitys;

import java.io.Serializable;
import java.util.Date;

/**
 * healthy
 * @author 
 */
public class Healthy implements Serializable {
    private Integer id;

    private Integer oid;

    private String pressure;

    private String weight;

    private String bloodSugar;

    private String temperature;

    private Date helthyTime;

    private String beiyong;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public String getPressure() {
        return pressure;
    }

    public void setPressure(String pressure) {
        this.pressure = pressure;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getBloodSugar() {
        return bloodSugar;
    }

    public void setBloodSugar(String bloodSugar) {
        this.bloodSugar = bloodSugar;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public Date getHelthyTime() {
        return helthyTime;
    }

    public void setHelthyTime(Date helthyTime) {
        this.helthyTime = helthyTime;
    }

    public String getBeiyong() {
        return beiyong;
    }

    public void setBeiyong(String beiyong) {
        this.beiyong = beiyong;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Healthy other = (Healthy) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getPressure() == null ? other.getPressure() == null : this.getPressure().equals(other.getPressure()))
            && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
            && (this.getBloodSugar() == null ? other.getBloodSugar() == null : this.getBloodSugar().equals(other.getBloodSugar()))
            && (this.getTemperature() == null ? other.getTemperature() == null : this.getTemperature().equals(other.getTemperature()))
            && (this.getHelthyTime() == null ? other.getHelthyTime() == null : this.getHelthyTime().equals(other.getHelthyTime()))
            && (this.getBeiyong() == null ? other.getBeiyong() == null : this.getBeiyong().equals(other.getBeiyong()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getPressure() == null) ? 0 : getPressure().hashCode());
        result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
        result = prime * result + ((getBloodSugar() == null) ? 0 : getBloodSugar().hashCode());
        result = prime * result + ((getTemperature() == null) ? 0 : getTemperature().hashCode());
        result = prime * result + ((getHelthyTime() == null) ? 0 : getHelthyTime().hashCode());
        result = prime * result + ((getBeiyong() == null) ? 0 : getBeiyong().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", oid=").append(oid);
        sb.append(", pressure=").append(pressure);
        sb.append(", weight=").append(weight);
        sb.append(", bloodSugar=").append(bloodSugar);
        sb.append(", temperature=").append(temperature);
        sb.append(", helthyTime=").append(helthyTime);
        sb.append(", beiyong=").append(beiyong);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}